package cm.oocl.controller;

import java.io.IOException;

import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;

import com.oocl.controller.Controller;
import com.oocl.modle.Message;

public class ControllerTes {

	Controller c = new Controller();
	
	@BeforeClass
	public static void init(){
		
	}
	
	@Test
	public void testLoadFile() throws IOException{
		Message[] messages = c.loadFile();
		Assert.assertTrue(messages.length == 8);
	}
}
